<template>
  <div class="tableCom">
    <Vue3SeamlessScroll :step="0.5" :wheel="true" :hover="true" :list="list" class="tableBody">
      <div class="tableBody2" v-for="(item,index) in list" :key="index">
        <div class="tableBody2s">
          <div class="title">{{ item.title }}</div>
          <div class="date">{{ item.date }}</div>
        </div>
        <div class="icon_left"></div>
        <div class="icon_right"></div>
      </div>
    </Vue3SeamlessScroll>
  </div>
</template>

<script>
import {Vue3SeamlessScroll} from "vue3-seamless-scroll";

export default {
  name: "tableCom",
  components: {Vue3SeamlessScroll},
  props: {
    list: {
      type: Array,
      default() {
        return [];
      }
    },
  },
  data() {
    return {}
  },
  watch: {},
  mounted() {
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
.tableCom {
  width: calc(100% - 0px);
  margin-left: 0px;
  position: relative;
  height: 100%;
  overflow: hidden;

  .tableBody {
    position: relative;
    height: calc(100% - 20px);
    margin-top: 10px;
    overflow: hidden;
    width: 100%;

    .tableBody2 {
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: nowrap;
      flex-direction: row;
      position: relative;
      width: 100%;

      .tableBody2s {
        display: flex;
        height: 40px;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        flex-direction: row;
        position: relative;
        width: calc(100% - 20px);

        .title {
          color: #60caff;
          margin-left: 10px;
          font-size: 13px;
          width: calc(100% - 100px);
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }

        .date {
          width: 100px;
          text-align: right;
          color: #60caff;
          font-size: 13px;
          margin-right: 10px;
        }
      }

      .icon_left {
        position: absolute;
        background: url("assets/icon_left2.png");
        width: 11px;
        height: 19px;
        left: 5px;
      }

      .icon_right {
        position: absolute;
        background: url("assets/icon_right2.png");
        width: 12px;
        height: 19px;
        right: 5px;
      }

      .tableBody2Item {
        font-size: 14px;
        font-family: MicrosoftYaHei;
        font-weight: 400;
        color: #FFFFFF;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        flex-direction: row;

        .num {
          width: calc(100% - 20px);
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          text-align: center;
        }
      }
    }

    .tableBody2:nth-child(2n) {
      background: #0b2840;
      background-size: 100% 100%;
    }
  }
}
</style>
